﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Manage/Main.Master"
    CodeBehind="RequestManage.aspx.cs" Inherits="AUV5.Web.Manage.RequestManage" %>

<%@ Import Namespace="AUV5.Model" %>
<%@ Import Namespace="AUV5.BLL" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>
        需求管理</h3>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td>
                发布人
            </td>
            <td style="width:250px">
                内容
            </td>
            <td>
                状态
            </td>
            <td>
                创建时间
            </td>
            <td align="center">
                管理
            </td>
        </tr>
        <asp:Repeater ID="rptRequest" runat="server" OnItemDataBound="rptRequest_ItemDataBound">
            <ItemTemplate>
                <tr>
                    <td>
                        <%#UserInfoBLL.Instance.GetUserName((Container.DataItem as RequestInfo).UserID)%>
                    </td>
                    <td>
                        <%# (Container.DataItem as RequestInfo).Title%>
                    </td>
                    <td>
                        <%#AUV5.Common.PageBase.GetEnumDesc(typeof(AUV5.Common.Enum.RequestState),Convert.ToInt32(Eval("StatusID"))) %>
                    </td>
                    <td>
                        <%# (Container.DataItem as RequestInfo).CreateDate.ToString("yyyy/MM/dd HH:mm")%>
                    </td>
                    <td class="action">
                        <asp:LinkButton ID="lkBtnDeny" CommandArgument='<%# Eval("RequestID") %>' OnCommand="lkBtnProcess_Command"
                            runat="server" Text="拒绝" class="edit"></asp:LinkButton>
                        &nbsp;
                        <asp:LinkButton ID="lkBtnEnable" CommandArgument='<%# Eval("RequestID") %>' OnCommand="lkBtnProcess_Command"
                            runat="server" Text="通过" class="delete"></asp:LinkButton>
                        <a href="#" class="delete">删除</a>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
        <tr>
            <td colspan="5">
               <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页"
                    NextPageText="后页" PagingButtonLayoutType="Span" PrevPageText="前页" SubmitButtonText="Go"
                    TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" OnPageChanged="AspNetPager1_PageChanged">
                </webdiyer:AspNetPager>
            </td>
        </tr>
    </table>
</asp:Content>
